package com.shinewind.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "接受用户信息的参数")
public class UserDto implements Serializable {
    @ApiModelProperty(value = "昵称")
    @NotNull(message = "昵称不能为null")
    private String nickName;
    @ApiModelProperty(value = "个人签名")
    @NotNull(message = "个人签名不能为null")
    private String sign;
}
